package manage.commons.annontations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 访问Action必须登陆，方法上的优先级高于类上，默认要求登陆
 * 
 * @author dongji
 * @since 2012-9-6 下午03:38:25
 */
@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
public @interface RequiredLogin {

	public enum Required {
		TRUE, FALSE
	};

	Required value() default Required.TRUE;
}
